package com.aaa.set.controller.api;

import com.aaa.entity.Advertise;
import com.aaa.security.annotation.MyLog;
import com.aaa.set.service.AdvertiseService;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/4 15:22
 */
@Api(value = "set/advertise", tags = {"#Date: 2023/3/4 15:22"})
@RestController
@RequestMapping("set/advertise")
public class ApiAdvertiseController {
     @Autowired
    private AdvertiseService advertiseService;
     /**
      * #Description 轮播图显示
      * @param advertise
      * @return com.aaa.vo.Result
      * @author 荆豪峰
      * #Date 2023/3/4
      */
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "body", dataType = "Advertise", name = "advertise", value = "", required = true)
    })
    @ApiOperation(value = "#Description 轮播图显示 #Date 2023/3/4", notes = "#Description 轮播图显示 #Date 2023/3/4", httpMethod = "POST")
    @MyLog(title = "轮播图显示")
     @PostMapping("list")
    public Result selectAll(@RequestBody Advertise advertise){
         return advertiseService.selectAll(advertise);
     }
}
